Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

445
Visualizações
Cannot find "lint" target for the specified project OR Data path "" must have required property 'lintFilePatterns'

After changing my project structure to a monorepo structure in Angular according to this tutorial, I encountered numerous config bugs that I managed to squash after lots of troubleshooting.

The full error reads

Cannot find "lint" target for the specified project.

You should add a package that implements linting capabilities

A variation of this error reads

Schema validation failed with the following errors:  
Data path "" must have required property 'lintFilePatterns'.

Both errors can be fixed with proper configuration of your angular.json.

Find the details to the fix below

over 4 years ago · Santiago Trujillo
2 Respostas
Responde à pergunta

0

The required config can be automatically added using:

ng add @angular-eslint/schematics

From Angular ESLint README

over 4 years ago · Santiago Trujillo Relatório

0

Go to angular.json -> <your-projects-root-directory> -> <your-project-name> -> architect and add or modify

"lint": {
          "builder": "@angular-eslint/builder:lint",
          "options": {
            "lintFilePatterns": [
              "<your-projects-root-directory>/<your-project-name>/src/**/*.ts",
              "<your-projects-root-directory>/<your-project-name>/src/**/*.html"
            ]
          }
        },

This tells the ng lint command which linter to use in the respective project (builder) and which files to lint (lintFilePatterns).

Typically your project root directory is named projects. You might have to replace the "builder" property by another linter, if you use tslint for example. See your package.json for details.

Remember to set this for all your projects that are defined in angular.json.

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda